/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ocp.violate.model;

/**
 *
 * @author Jameel
 */
public class EmployeeViolateOCP {
    private String firstName;
    private String middleName;
    private String lastName;
    private long ID;
    private double salary;
    private double monthlyTax;
    private double annual;

    public double getAnnual() {
        return annual;
    }

    public void setAnnual(double annual) {
        this.annual = annual;
    }

    public double getMonthlyTax() {
        return monthlyTax;
    }

    public void setMonthlyTax(double monthlyTax) {
        this.monthlyTax = monthlyTax;
    }
    
    public void calculateAnnualIncomeAndTax()
    {        
        annual = (salary * 12);
        monthlyTax = (salary * 0.10);
    }

    public long getID() {
        return ID;
    }

    public void setID(long ID) {
        this.ID = ID;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName = middleName;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
    
    @Override
    public String toString() {
        return "Employee{" + "firstName=" + firstName + ", middleName=" + middleName + ", lastName=" + lastName + ", ID=" + ID + ", salary=" + salary + '}';
    }
}
